package cn.xuewenbao.manage.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: book
 * @Author: jeecg-boot
 * @Date:   2021-09-23
 * @Version: V1.0
 */
@Data
@TableName("book")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="book对象", description="book")
public class Book implements Serializable {
    private static final long serialVersionUID = 1L;

	/**讲书id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "讲书id")
    private String id;
	/**作者id*/
	@Excel(name = "作者id", width = 15)
    @ApiModelProperty(value = "作者id")
    private String userId;
	/**讲书标题*/
	@Excel(name = "讲书标题", width = 15)
    @ApiModelProperty(value = "讲书标题")
    private String title;
	/**讲书内容*/
	@Excel(name = "讲书内容", width = 15)
    @ApiModelProperty(value = "讲书内容")
    private String content;
	/**讲书封面路径*/
	@Excel(name = "讲书封面路径", width = 15)
    @ApiModelProperty(value = "讲书封面路径")
    private String cover;
	/**讲书音频路径*/
	@Excel(name = "讲书音频路径", width = 15)
    @ApiModelProperty(value = "讲书音频路径")
    private String audio;
	/**讲书视频路径*/
	@Excel(name = "讲书视频路径", width = 15)
    @ApiModelProperty(value = "讲书视频路径")
    private String video;
	/**讲书描述*/
	@Excel(name = "讲书描述", width = 15)
    @ApiModelProperty(value = "讲书描述")
    private String description;
	/**讲书状态 Draft未发布  Normal已发布*/
	@Excel(name = "讲书状态 Draft未发布  Normal已发布", width = 15)
    @ApiModelProperty(value = "讲书状态 Draft未发布  Normal已发布")
    private String status;
	/**播放量*/
	@Excel(name = "播放量", width = 15)
    @ApiModelProperty(value = "播放量")
    private Integer viewCount;
	/**点赞数*/
	@Excel(name = "点赞数", width = 15)
    @ApiModelProperty(value = "点赞数")
    private Integer likeCount;
	/**纸书价格*/
	@Excel(name = "纸书价格", width = 15)
    @ApiModelProperty(value = "纸书价格")
    private BigDecimal price;
	/**逻辑删除1（true）已删除，0（false）未删除*/
	@Excel(name = "逻辑删除1（true）已删除，0（false）未删除", width = 15)
    @ApiModelProperty(value = "逻辑删除1（true）已删除，0（false）未删除")
    private Integer isDeleted;
	/**更新时间*/
	@Excel(name = "更新时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
	/**创建时间*/
	@Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;
}
